// 叶子节点：文件
public  abstract class File implements IComponent {
    protected String fileName;

    public File(String fileName) {
        this.fileName = fileName;
        System.out.println("正在扫描 " + fileName + "...");
        System.out.println(fileName + "已杀毒");
    }

    @Override
    public void scanForViruses() {
        //System.out.println("正在扫描 " + fileName + "...");
        //System.out.println(fileName + "已杀毒");
    }
}